home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11011 < prev    next >
Encoding:
Text File  |  2002-07-05  |  3.1 KB  |  119 lines

  1. <html>
  2. <head>
  3. <title> </title>
  4. <LINK REL="stylesheet" TYPE="text/css" HREF="%4css/default.css">
  5. </head>
  6.  
  7. <SCRIPT language="JavaScript">
  8. // LOCALIZATION STRINGS
  9. var _someRightsHaveChanged = "You have changed the right roles for some other users or user groups.\n\nDiscard the changes and show the custom rights settings for the current user or user group?";
  10. </SCRIPT>
  11. <SCRIPT>
  12.  
  13.  
  14. var num=%3;
  15. var uidDefRights = new Array(num);
  16.  
  17. function hasAnythingChanged( excludeThis)
  18. {
  19.     for ( i = 0; i < num; i++)
  20.     {
  21.         if ( i != excludeThis)
  22.         {
  23.             with ( document.forms.objectRight.elements["ERights"+i])
  24.             {
  25.                 if ( uidDefRights[i] != options[selectedIndex].value)
  26.                     return true;
  27.             }
  28.         }
  29.     }
  30.     return false;
  31. }
  32.  
  33. function goToAdvancedRight( idx)
  34. {
  35.     var goAheadDoIt = true;
  36.     if ( hasAnythingChanged( idx))
  37.         goAheadDoIt = window.confirm(_someRightsHaveChanged);
  38.  
  39.     if (!goAheadDoIt)
  40.     {    // back to its old self
  41.         for ( var i = 0; i < document.forms.objectRight.elements["ERights"+idx].options.length; i++)
  42.             if ( document.forms.objectRight.elements["ERights"+idx].options[i].value == uidDefRights[idx])
  43.                 document.forms.objectRight.elements["ERights"+idx].options[i].selected = true;
  44.     }
  45.     else
  46.     {
  47.         top.target_frame.location = "%7" + document.forms.objectRight.elements["uid"+idx].value;
  48.     }
  49.  
  50. }
  51.  
  52. function checkForAdvancedRight( idx)
  53. {
  54.     if ( document.forms.objectRight.elements["ERights"+idx].selectedIndex == 6)
  55.         goToAdvancedRight( idx);
  56. }
  57.  
  58. function update()
  59. {
  60.     var i;
  61.  
  62.     for ( i = 0; i < num; i++)
  63.     {
  64.         with ( document.forms.objectRight.elements["ERights"+i])
  65.         {
  66.             if ( uidDefRights[i] != options[options.selectedIndex].value)    
  67.             {
  68.                 document.forms.objectRight.elements["ERightsMod"+i].value = "true";
  69.             }
  70.         }
  71.     }
  72.     document.objectRight.submit();
  73. }
  74.  
  75. function reset()
  76. {
  77.   document.forms.objectRight.reset();
  78. }
  79.  
  80. function addremove()
  81. {
  82.    top.target_frame.location = "%5";
  83. }
  84.  
  85. // Refresh the current page
  86. function refresh()
  87. {
  88.     window.location = "%6";
  89. }
  90.  
  91. </SCRIPT>
  92.  
  93. <BODY LEFTMARGIN="0" TOPMARGIN="0">
  94.  
  95. <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
  96.  
  97. <SCRIPT SRC="%4js/helps.js"></SCRIPT>
  98. <SCRIPT SRC="%4js/tips.js"></SCRIPT>
  99.  
  100. <FORM name="objectRight" method=POST action="%2">
  101. <INPUT type=hidden name="rnum" value="%3">
  102. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
  103. <TR CLASS="listHeading" WIDTH="100%">
  104.   <TD CLASS="listHeading" WIDTH="18%" ALIGN="LEFT"><span ID="text"> Name</SPAN></TD>
  105.   <TD CLASS="listHeading" WIDTH="14%" ALIGN="LEFT"><span ID="text">Full Name </SPAN></TD>
  106.   <TD CLASS="listHeading" WIDTH="8%" ALIGN="LEFT"><span ID="text">Object</SPAN></TD>
  107.   <TD CLASS="listHeading" WIDTH="33%" ALIGN="LEFT"><span ID="text">Description</SPAN></TD>
  108.   <TD CLASS="listHeading" WIDTH="15%" ALIGN="LEFT"><span ID="text">Access Level</SPAN></TD>    
  109.   <TD CLASS="listHeading" WIDTH="12%" ALIGN="LEFT"><span ID="text">Net Access</SPAN></TD>    
  110. </TR>
  111.   %1    
  112. </TABLE>
  113. </FORM>
  114. <script language="JavaScript">
  115.     document.forms.objectRight.reset();
  116. </script>
  117. </body>
  118. </html>
  119.